<template>
	<view class="min30">
		<!--  -->
		<ben></ben>
		<!--  -->
		<view class="" v-if="type == 'user_agreement'">
			<mp-html :content="list.user_agreement" />
		</view>
		<view class="" v-if="type == 'privacy_policy'">
			<mp-html :content="list.privacy_policy" />
		</view>
		<view class="" v-if="type == 'payout_agreement'">
			<mp-html :content="list.payout_agreement" />
		</view>
		<view class="" v-if="type == 'about_us'">
			<mp-html :content="list.about_us" />
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: '',
				list: {},

			}
		},
		onLoad(op) {
			this.type = op.type
			this.getAgreement()
		},
		methods: {
			async getAgreement() {
				let {
					code,
					message,
					data
				} = await this.$com.fetchGet("home/agreement")
				if (code == 200) {
					this.list = data

				} else {
					console.log(message);
				}
			},
		}
	}
</script>

<style>
</style>